#ifndef _DEFAULTS_H_
#define _DEFAULTS_H_

// ***************
// Defaults
// ***************
#define TIMEOUT 5 /* default time to wait for response */
#define MAX_RETRIES 3 /* default times to retry query */
#define PORT_NUMBER 53 /* default port to use */

// ***************
// Constants
// ***************
#define HEADER_INFO_SIZE 12 // size of dns packet header (in bytes)
#define NUM_HEADER_FIELDS 6 // number of header fields
#define QUESTION_INFO_SIZE 4 // size of dns packet question's non variable parts (in bytes)
#define ANSWER_INFO_SIZE 8 // size of dns packet answer's non variable parts (in bytes)
#define MAX_PACKET_SIZE 512 // max size of packet (in bytes) (TODO: or is this 1500?)
#define A_RECORD 0x0001
#define CNAME 0x0005
#define IP_SIZE 4 // size of an ip address (in bytes - 4 octets)

// ***************
// Testing
// ***************
#define TEST_SERVER 129.10.112.216 /* test server to throw dns query packets at */
#define TEST_URL www.google.com
#define MAX_STR_SIZE 255

#endif
